﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Tmp.Models;

public class SharedCode
{
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public long SharedCodeId { get; set; }

    public string? Code { get; set; }

    [ForeignKey("Language")]
    public long LanguageId { get; set; }
    public Language? Language { get; set; }

    // 访问分享的代码页需要的密文
    public string? Cipher
    {
        get;
        set;
    }
}